
import request from '@/utils/request'
/**
 * 查询-分页查询安灯推送主数据
 * @param getPush
 */
export function getPush(data) {
  return request({
    url: `andon/push/page`,
    method: 'post',
    data
  })
}
/**
 * 查询-根据id查安灯等级数据
 * @param getGradeById
 */
export function getGradeById(data) {
  return request({
    url: `andon/push/` + data,
    method: 'get'
  })
}
/**
 * 保存-保存安灯推送主数据
 * @param savePush
 */
export function savePush(data) {
  return request({
    url: `andon/push/saveOrUpdate`,
    method: 'post',
    data
  })
}
/**
 * 删除-删除安灯推送主数据
 * @param deletePush
 */
export function deletePush(data) {
  return request({
    url: `andon/push/delete`,
    method: 'post',
    data: data
  })
}
